<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
	<head>
		<title>建设工程中标公示</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link href="../css/common.css" rel="stylesheet" type="text/css" />
		<link href="../static/css/wsbs.css" rel="stylesheet" type="text/css" /> 
		<link href="../static/css/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="../static/css/ui.jqgrid.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="../static/css/ui.jqgrid.modify.fwpt.css" rel="stylesheet" type="text/css" />
		<script src="../js/jquery-1.9.0.min.js" type="text/javascript"></script>
		<script src="../js/i18n/grid.locale-cn.js" type="text/javascript"></script>
		<script src="../js/jquery.jqGrid.min.js" type="text/javascript"></script>
		<script src="../js/commonInChildPage.js" type=text/javascript></script>
		<style type="text/css">
		#left {
			width: 180px;
			float: left;
			background-color: #e6f1fd;
		}
		
		.tab_menu_1000 li a {
			color: #02719F;
			font-weight: normal;
		}
		
		.tab_menu_1000 LI.hover a {
			BACKGROUND-POSITION: 0px -30px;
			COLOR: #fff
		}
		</style>
	</head>

	<body>
		<jsp:include page="../include/head.jsp" />
		<div class="position">
			<strong>
				<table id="wypy" width="310" cellspacing="0" cellpadding="0"
					border="0">
					<tbody>
						<tr>
							<td class="xinxin_font" width="170" valign="bottom" height="20"
								align="right">
								本窗口服务星级评定：
							</td>
							<td width="140" valign="center" align="left"
								onmouseover="rate(this,event)">
								<img width="20" src="../images/star_1.png" title="很烂">
								<img width="20" src="../images/star_1.png" title="一般">
								<img width="20" src="../images/star_1.png" title="还好">
								<img width="20" src="../images/star_1.png" title="较好">
								<img width="20" src="../images/star_2.png" title="很好">
							</td>
						</tr>
					</tbody>
				</table>您现在的位置：</strong>
			<a href="http://wsbs.zhzw.gov.cn/">首 页</a> &gt;
			<a href="http://wsbs.zhzw.gov.cn/wsbs/">网上办事</a> &gt;
			<a href="../index.do">公共资源交易大厅</a>&gt;
			<a href="zbgs_jsgc_page_list.do">中标公示</a>&gt; 建设工程
		</div>

		<div class="main t10 clearfix">
			<div class="main_left clearfix">
				<UL class="tab_menu_1000">
					<LI class="pre_li hover">
						<a href="zbgs_jsgc_page_list.do">建设工程</a>
					</LI>
					<LI class="ent_li">
						<a href="zbgs_zfcg_page_list.do">政府采购</a>
					</LI>
					<LI class="fwbm_li">
						<a href="zbgs_cqjy_page_list.do">产权交易</a>
					</LI>
					<LI class="fc_li">
						<a href="zbgs_tdfc_page_list.do">土地房产</a>
					</LI>
				</UL>
				<!-- 建设工程-->
				<div>
					<table id="projectlist"></table>
					<div id="pprojectlist"></div>
				</div>

			</div>
		</div>

		<jsp:include page="../include/bottom.jsp" />
	</body>
	<script type="text/javascript">
	jQuery("#projectlist").jqGrid({
		datatype : "json",
		url : "zbgs_jsgc_page_data.do",
		jsonReader : {
			root : "result",
			page : "currentPage",
			total : "pageCount",
			records : "totalCount"
		},
		height : 'auto',
		width : 1000,
		rowNum : 15,
		rowList : [ 5, 10, 15, 20, 25, 30 ],
		colNames : [ '项目名称', '上传时间', 'ID'],
		colModel : [ 
			{name : 'projectName',index : 'projectName',width : 200,align : "left",sortable : false,formatter : formatUrl},
			{name : 'bidEndTime',index : 'bidEndTime',width : 60,align : "center",sortable : false}, 
			{name : 'id',index : 'id',width : 100,align : "center",sortable : false,hidden : true}
		],
		pager : "#pprojectlist",
		viewrecords : true,
		toolbar : [ true, "top" ]
	});

	function formatUrl(cellvalue, options, rowObject) {
		var returnStr = "<a href='zbgs_jsgc_detail.do?id=" + rowObject.id
				+ "' target='_blank'>";
		returnStr += "<img src='../static/images/array.png' style='padding:0 10px 0 10px'/>"
				+ cellvalue;
		returnStr += "</a>";
		return returnStr;
	}

	$("#t_projectlist").css("height", "30px");
	var searchContent = "<div class='d_search_fr'>项目名称：<input type='text' size='20' id='projectName'/>&nbsp;"
			+ "<input type='submit' name='Submit' id='searchButton' value='搜 索' class='input_button_small'/>&nbsp;</div>";

	$("#t_projectlist").append(searchContent);
	$(document).ready(function() {
		$("#searchButton").click(function() {
			jQuery("#projectlist").jqGrid().setGridParam({
				postData : {
					searchText : function() {
						return encodeURI($("#projectName").val());
					},
					prjType : function() {
						return $("#select_search").val();
					}
				}
			}).trigger("reloadGrid");
		});
	});
</script>
</html>